<template>
    <div class="tip">
        <mt-header fixed title="累计评价">
            <router-link v-bind="{to:'/shop/shopifo/' + this.id}" slot="left">
                <mt-button icon="back">返回</mt-button>
            </router-link>
            <mt-button icon="more" slot="right"></mt-button>
        </mt-header>
        <!--商品评论区域-->
        <shoptalk :val="id"></shoptalk> <!--这里的val指子组件中定义的props:[]中的val-->
    </div>
</template>

<script>
import talkshop from "../subcom/component.vue";
    export default {
        components:{
            shoptalk: talkshop
        },
        data(){
            return {
                id: ""
            }
        },
        created(){
            this.id = this.$route.params.tlk;
        }
    }
</script>

<style scoped>

</style>
